package event

var mgr = NewEventManager()

func GetEventTypeID(eventType Event_Type,eventId Event_ID) uint16 {
	var id = uint16(eventType)
	id = id<<8
	id = id + uint16(eventId)
	return id
}

func EventRegister(eventId Event_ID,handler IEventHandler) {
	mgr.Register(eventId,handler)
}

func EventUnRegister(eventId Event_ID,handler IEventHandler) {
	mgr.UnRegister(eventId,handler)
}

func EventNotify(eventId Event_ID,data interface{}) {
	mgr.Notify(eventId,data)
}